@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './dialog-form.scss';
@import './component/design.norm.one.scss';
@import './component/design.norm.two.scss';

body {
  font-size: 16px;
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: PingFang SC，Hiragino Sans GB，Microsoft YaHei UI，Microsoft YaHei，Source Han Sans CN，sans-serif !important;
}

.english-text {
  font-family: -apple-system，BlinkMacSystemFont，Segoe UI，Roboto，Helvetica Neue，Helvetica，Arial !important;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

html.dark .svg-icon,
html.dark svg {
  fill: var(--el-text-color-regular);
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

// search面板样式
.panel,
.search {
  margin-bottom: 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid var(--el-border-color-light);
  //background-color: var(--el-bg-color-overlay);
  padding: 0.75rem;
  transition: all ease 0.3s;

  &:hover {
    box-shadow: 0 2px 12px #0000001a;
    transition: all ease 0.3s;
  }
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.page-container {
}
// 带搜索的列表
.search-table-container {
  height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  &.table-container {
    height: calc(100vh - 56px) !important;
    .page-table-con {
      padding-top: 16px !important;
    }
  }
  .search-form-toggle {
    padding: 0;
  }
}
.page-search-form {
  display: flex;
  flex-wrap: wrap;
  padding: 12px 0 4px 18px;
  --form-item-width: 25%;
  .el-form-item {
    display: flex;
    align-items: center;
    width: var(--form-item-width);
    margin-bottom: 12px;
    margin-right: 0;
    padding-right: 18px;

    .el-form-item__label {
      text-align: right;
      color: #757778;
      padding-right: 8px;
      font-weight: 400;
      line-height: 32px;
    }
    .el-form-item__content {
      flex: 1;
      line-height: 32px;
      .el-date-editor {
        width: 100%;
      }
      .el-select {
        width: 100%;
      }
      .el-cascader {
        width: 100%;
      }
      .el-input-number--small {
        width: 100%;
      }
    }
  }
  > .el-form-item:last-child {
    flex: 1;
    .el-form-item__content {
      display: flex;
      justify-content: flex-end;
      height: 32px;
      position: relative;
      top: 2px;
    }
  }
  .form-item-part {
    width: var(--form-item-part);
  }
}
.page-table-con {
  flex: 1;
  overflow: hidden;
  padding: 0 18px;
  &-table {
    // height: calc(100% - 54px) !important;
  }
  .el-table {
    height: calc(100% - 67px) !important;
    margin-bottom: 20px;
    // border-bottom: 1px solid #ebeef5;
    &::before {
      height: 0px;
    }

    .el-table__inner-wrapper {
      &:before {
        height: 0 !important;
      }
    }
  }
}
// 弹框中 -- 搜索+列表 形式
.dialog-form-search {
  .page-search-form {
    // padding-bottom: 4px !important;
    // padding-right: 6px !important;
    padding: 0 !important;
    width: calc(100% + 20px);
    .el-form-item {
      padding-right: 20px !important;
    }
  }

  height: auto !important;
  &-part {
    // background: #f7f9fa !important;
    padding: 16px 24px 0 !important;
    border-radius: 4px;
  }
}
.dialog-form-table {
  margin-top: 4px;
  .el-table {
    margin-top: 4px !important;
  }
}
// 只有头部标题页面的下部分
.page-container-expTitle {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  padding: 12px 18px;
  height: calc(100vh - 170px);
}

.page-edit-form {
  .el-form-item__content {
    > div {
      width: 100% !important;
    }
    .el-input-number {
      width: 150px !important;
    }
  }
}

.toggle-arrow-icon {
  transform: rotate(0deg);
  transition: transform 0.5s ease;
  margin-left: 4px;
}
.toggle-arrow-up {
  transform: rotate(180deg);
}

.el-table__fixed-right-patch {
  background-color: #edeeef;
}
.page-tree-con {
  height: calc(100vh - 170px);
  padding: 12px 20px;
  border-right: 1px solid #e4e9ed;
  .el-tree {
    background: initial !important;
    --el-tree-text-color: #646566 !important;
    .el-tree-node {
      padding: 6px 0;
    }
    .el-tree-node__label {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
  .tree-scrollbar-con {
    height: 100%;
    &:hover {
      overflow-y: auto;
    }
  }
}

.el-table__fixed-right::before,
.el-table__fixed::before {
  background-color: transparent;
}

.table-inner-button {
  color: #1989fa;
  cursor: pointer;
}
.select-option-container {
  max-width: 300px;
}
